import { createStore } from "vuex";
const store = createStore({
  state() {
    return {
      role:"pat",  
      roomId: 0,
      user: "",
    };
  },
  mutations: {
    setRoomId(state, payload) {
      state.roomId = payload;
    },
    setUser(state, payload) {
      state.user = payload;
    },
  },
});
export default store;
